// src/popup/router/index.js
import { createRouter, createWebHashHistory } from 'vue-router'
import TextHighlighter from '../../options/views/text-highlighter/index.vue'
import ScreenshotTool from '../views/similarity-img-search/index.vue'
import ShortcutManager from '../../options/views/shortcut-manager/index.vue'
import AnnotationTool from '../../options/views/annotation-tool/index.vue'

const routes = [

    {
        path: '/',
        redirect: '/text-highlighter'
    },
    {
        path: '/text-highlighter',
        name: 'TextHighlighter',
        component: TextHighlighter
    },
    {
        path: '/similarity-img-search',
        name: 'ScreenshotTool',
        component: ScreenshotTool
    },
    {
        path: '/shortcut-manager',
        name: 'ShortcutManager',
        component: ShortcutManager
    },
    {
        path: '/annotation-tool',
        name: 'AnnotationTool',
        component: AnnotationTool
    }
]

const router = createRouter({
    history: createWebHashHistory(),
    routes
})

export default router